/**
 * string() 值必须是字符串
 * alphanum() 值只能是包含 a-zA-Z0-9 的字符串
 * min(length) 最小长度
 * max(length) 最大长度
 * required() 值是必填项，不能为 undefined
 * pattern(正则表达式) 值必须符合正则表达式的规则
 */

const joi = require('joi')

const id = joi.string().required();
const img = joi.string().required();
const address = joi.string().required();
const contact = joi.string().required();
const email = joi.string().required();
const postcode = joi.string().required();
const tel = joi.string().required();



exports.relation_update = {
    body:{
        id,
        img,
        address,
        contact,
        email,
        postcode,
        tel
    }
}
